#include "cat.h"

Cat::Cat(int age, string name)
{
	this->age = age;
	this->name = name;
}
Cat::~Cat()
{

}
void Cat::operator +=(const Cat & cat)
{
	this->age += cat.age;
}

bool Cat::operator >(const Cat &cat)
{

	if (this->age > cat.age)
	{
		//cout << "true"<<endl;
		return true;
	}
	else
	{
		// cout << "false"<<endl;
		return false;
	}
}
Cat Cat::operator + (const Cat & cat)
{
	this->age += cat.age;
	this->name += cat.name;
	return *this;
}
Cat Cat::operator ++()
{
	++(this->age);
	Cat cat = *this;
	return cat;
}

Cat Cat::operator ++(int)
{
	Cat cat = *this;
	this->age++;
	return cat;
}
